package com.itsv.cyzx.util;


import com.itsv.xhyy.R;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class ViewCache {

	private View baseView;
	private TextView titleView;
	private TextView contentView;
	private ImageView imageView;

	public ViewCache(View baseView) {
		this.baseView = baseView;
	}

	public TextView getTitleView() {
		if (titleView == null) {
			titleView = (TextView) baseView.findViewById(R.id.tv_title);
		}
		return titleView;
	}

	public TextView getContentView() {
		if (contentView == null) {
			contentView = (TextView) baseView.findViewById(R.id.tv_content);
		}
		return contentView;
	}

	public ImageView getImageView() {
		if (imageView == null) {
			imageView = (ImageView) baseView.findViewById(R.id.iv);
		}
		return imageView;
	}

}